<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="1.js"></script>
</head>
<body>

</body>
</html>

<script>

    var ajax = createXMLHTTPRequest();
//    console.log(ajax)

    get("3.php","name=zhangrxiang");
    post("3.php","name=zhangrongxiang")
</script>